<?php include "templates/include/header.php" ?>

      <div id="adminHeader">
        <h2>Administration des images</h2>
        <p>Vous etes connect&eacute; en tant que <b><?php echo htmlspecialchars( $_SESSION['username']) ?></b>. <a href="admin.php?action=logout"?>Se D&eacute;connecter</a></p>
      </div>

      <h1><?php echo $results['pageTitle']?></h1>
        <input type="hidden" name="imageId" value="<?php echo $results['edit']->id ?>"/>

<?php if ( isset( $results['errorMessage'] ) ) { ?>
        <div class="errorMessage"><?php echo $results['errorMessage'] ?></div>
<?php } ?>
  <div>
    <img src="<?php if( isset( $results['image']['image'] ) ) { echo( $results['image']['image'] ); }?>" />
    <br/>
    <a href="admin.php?action=deleteImage&amp;id=<?php echo $results['edit']->id ?>&amp;imageId=<?php echo $results['imageId'] ?>&amp;origin=<?php echo $results['origin'] ?>">Supprimer cette image</a>
  </div>
<?php include "templates/include/footer.php" ?>
